package com.pw.study.arithmetic

/**
 * @Desc: TODO
 * @author: future
 * @since: 2022/5/23-21:26
 */
object FutureHelloV1 {
  def main(args: Array[String]): Unit = {
    val future: FutureBean = FutureBean("future", 20)
    val btn1: Boolean = future.isInstanceOf[FutureBean]
    val btn2: FutureBean = future.asInstanceOf[FutureBean]
    println("btn1: "+btn1+" btn2:"+btn2)


  }
}

case class FutureBean(name: String, age: Int)
